//
//  JourneyCtrl.m
//  LvXingPai
//
//  Created by _Junxee on 16/8/13.
//  Copyright © 2016年 _Junxee. All rights reserved.
//

#import "JourneyCtrl.h"
#import "JourneyCell.h"

@interface JourneyCtrl ()

@end

@implementation JourneyCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setBarButStyle];
    self.title = _jModel.zhName;
}

-(void)setJModel:(DestinModel *)jModel{
    _jModel = jModel;
}

-(void)setBarButStyle{
    UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"common_icon_navigation_back_normal"] style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
    self.navigationItem.leftBarButtonItem = leftBtn;
}

-(void)backAction:(UIBarButtonItem *)sender{
    [self.navigationController popViewControllerAnimated:YES];
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 4;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    JourneyCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    
    return cell;
}

@end